/**
 * @file    pressure.h
 * @brief   保存压力传感器相关声明
 */

#ifndef PRESSURE_H
#define PRESSURE_H

#include "ADC.h"

typedef struct
{
    unsigned short adc_value;      // bit
    float          voltage;        // V
    float          pressure_value; // kPa
} pressure_sensor_t;

extern void calculate_presssure(pressure_sensor_t *sensor);
extern void pressure_sensor_init(pressure_sensor_t *sensor);
#endif
